package com.chen106106.sstest.service;


import com.chen106106.sstest.model.User;
import java.util.List;

/**
 * 
 * @author chenz106106@gmail.com
 * 2012-7-16 下午11:23:52
 *
 */
public interface UserMgrService {
	
	/**
	 * 判断用户今天是否登录
	 * @return
	 */
	public boolean todayIsLogin();
	
	/**
	 * 根据id获取用户信息
	 * @param id
	 * @return
	 */
	public User getUserInfoById(int id);
	
	/**
	 * 判断用户是否注册过
	 * @param username
	 * @return
	 */
	public boolean isRegister(String username);
	
	/**
	 * 用户注册
	 * @param user
	 * @return
	 */
	public long userRegister(User user);
	
	public List<User> queryList(int ...params);

	public boolean updateUser(User user);

	public boolean deleteUser(int uid);

	public int getUserCount();

}
